Corrosion inhibition of mild steel in 1 M HCl by pyrazolone-sulfonamide hybrids: synthesis, characterization, and evaluation

Carbon steel is widely used in the petroleum industry for pipelines, storage tanks, and equipment due to its mechanical properties, and strength. However, challenges such as environmental conditions and corrosive materials can affect its lifespan and require maintenance and repair. This work aimed to prepare pyrazalone-sulfonamide hybrids, and confirmed by mass spectra, FTIR, 1H-NMR, and 13C-NMR. These compounds were examined as mild steel corrosion inhibitors in 1 M HCl solutions at 298–323 K using the gravimetric technique, electrochemical measurements, scanning electronic microscope analysis, and quantum chemical calculations. The values of inhibitory efficiency identified by electrochemical and non-electrochemical techniques exhibit good agreement. At various temperatures and in the 50 to 500 ppm concentration range. During the adsorption process, these substances connect to the Langmuir adsorption isotherm. Some adsorption isotherm and kinetic parameters have been developed and discussed. The metal surface had a thin inhibitory protective layer, according to investigations using energy dispersive X-ray spectroscopy (EDX) and scanning electron microscope (SEM). These findings demonstrated the potential of pyrazolone-sulfonamide as effective organic corrosion inhibitors for carbon steel.

The process of connecting or fusing two different chemical entities results in new hybrid moieties and is known as molecular hybridization.It is expected that the pharmacological activity of the hybrid compounds will be additive or synergistic.The two parts were selected based on their previously known bios.Since several of these hybrid derivatives were more effective and had a lower toxicity profile than their parent chemicals, they were widely used 24,25 .
The pyrazoline derivatives are an intriguing group of heterocyclic compounds because of the discovery of fresh lead compounds with a wide range of biological characteristics and the significant role they play in drug creation.They stand out for their adaptability in the synthetic process as well 26 .The phenyl-pyrazolone unit is found in a variety of compounds with potential as medicines.With especial, 1-phenyl-3-methyl-5-pyrazolone (PMP), also known as edaravone Fig. 1, is a bicyclic chemical structure present in a variety of medications, most notably edaravone but also antipyrine (phenazone) and propyphenazone as examples Fig. 1.Essentially, the 1-phenyl-3-methyl-5-pyrazolone molecule will resemble the PMP reagent a biochemists use to analyze carbohydrates.For those in the medical field, the drug edaravone, which is used to treat acute stroke harm and amyotrophic lateral sclerosis, will mostly have the same structure (ALS).The structure can be viewed as an intriguing framework that medicinal chemists can use to build new drugs, especially ones that are antioxidative and/or anticancer 27 .One of the most important types of antibacterial chemicals is sulfonamide derivatives 28 .Many compounds containing sulfonamide groups also exhibit additional essential biological traits, such as anticancer activities 29 , antidiabetic type 2 30 , and antifungal activities 31 .Nowadays, pyrazoline and sulfonamide scaffold hybridization has been investigated 26 .Sayed et al. reported on the synthesis and anticancer evaluations of pyrazolone-sulfonamide hybrids as against HepG2, HCT-116, and MCF-7 cancer cell lines using the pharmacophore hybridization approach 32 .Yamali et al. reported the synthesis of new pyrazoline-sulfonamide hybrids and in vitro pharmacological assessment as multi-target agents for the inhibition of acetyl cholinesterase and carbonic anhydrase I and II enzymes 33 .The molecular structure, electrical structure, and reactivity of heterocyclic organic compounds have been determined using the density functional theory (DFT), which has also been used to light the process of corrosion inhibition 34,35 .
In this study, we developed pyrazalone-sulfonamide hybrids by combining these two molecular parts into a single framework, in which the sulfonamide fragment was attached to the pyrazalone through a variety of linkers as shown in Fig. 2, and we tested these hybrids as mild steel corrosion inhibitors in 1 M HCl.Electrochemical frequency modulation, electrochemical impedance spectroscopy (EIS), and potentiodynamic polarization were a few of the techniques employed to evaluate the inhibitory impact (PDP).

Materials instruments
The substances were high purity, analytical reagent grade compounds.The British Drug House provided the organic solvents.A Gallenkemp melting point detector was used to find melting points (OC, uncorrected) in open capillaries (Sanyo Gallenkemp, Southborough, UK).IR spectra (KBr discs) were obtained using Fourier transform infrared spectroscopy (FTIR, plus 460 or Pye Unicam SP-1000 spectrophotometer, Pye Unicam, Cambridge, UK). 1 HNMR spectra (DMSO-d6) were collected using a Bruker spectrophotometer (400 MHz for 1 HNMR and 100 MHz for 13 CNMR).Tetraethyl silane is used as an internal standard, while DMSO-d6 is used as the solvent.Chemical shifts are displayed in ppm.MS electrodes with the compositions and pre-treatment information described in our prior study were purchased from the AL-EZZ firm in Alexandria, Egypt.The 1 M HCl solution that is corrosive was created by diluting 37% hydrochloric acid 36 .The morphological investigation of the MS was conducted using the scanning electron microscope (SEM, JEOL, JSM5400LV).TLC on silica gel 60 F254 plates, visualization with UV light (254 nm), monitoring the reaction progress, and assessing the purity of synthesized compounds.

Gravimetric technique
Experiments were conducted on MS in 1 M HCl acid (with and without inhibitors) to measure the weight loss.The MS sheets utilized have dimensions of 5 × 1 × 0.1 cm.The sheets were polished to variable degrees to achieve different granulation grades (SiC 1200 and 1400).The test solution was placed in a 250 mL glass vessel for each run.A clean weight was placed in an upright position and filled to the top of the jar.The plates are dried by air after being warmed.Millilitter of the test solution rinsed and dried in ethanol.A clean weight sample of mild steel was placed in an inclined position in the jar.The specimen was removed and cleaned with distilled water to remove abrasion products after spending a day immersed in 1 M HCl (uninhibited and inhibited) with the addition of different dosages of inhibitors.The plates are then heated air dried.ethanol-washed, dried, and weighed.Thermostat-controlled experiments were conducted at constant temperatures of 298, 303, 313, and 323 K in freshly produced solutions.The corrosion rate (CR) was calculated using the weight loss 39 .

Electrochemical investigations
The tests were performed using an electrochemical cell with three electrodes that has a saturated calomel electrode (SCE) as the reference electrode, a platinum wire as the counter electrode, and MS with a surface area of 1 cm 2 .In this study, electrochemical impedance spectroscopy, electrochemical frequency modulation, and www.nature.com/scientificreports/electrochemical potentiodynamic polarization approaches have all been measured in turn.Electrochemical impedance spectroscopy (EIS) was performed using an electrode that had been submerged in the test for an hour.The EIS measurements were made at open-circuit voltage (OCV) with a small alternating voltage perturbation (10 mV) applied to the cell over the frequency range of 100 kHz to 20 mHz at 298 K. Second, electrochemical frequency modulation (EFM) was carried out using two frequencies of 2 and 5 Hz and an AC amplitude of 10 mV.Potentiodynamic polarization was also detected for anodic and cathodic polarization at a scan rate of 5 mV s −1 .With the use of the Gamry 3000 potentiostat/galvanostat/ZRA and Echem Analyst 7 software, all of these methods were measured 40 .
where χ Fe ≈ 7 eV 41 is taken for iron and η Fe = 0 is taken, assuming that the ionization potential, I, equal the electron affinity, A, for bulk metals where χ Fe and η Fe are 7 and 0 respectively 42 . (1)

Characterization of the inhibitor
In the present work, the intermediate 3-methyl-I-phenyl-5-pyrazolone (2), named Edaravone (Radicava), was obtained quantitatively via the Knorr condensation reaction of ethyl acetoacetate 1 with phenyl hydrazine 37 .The formation of compound 2 is assumed via nucleophilic attack of the least hindered nitrogen atom of phenyl hydrazine on the ketone moiety of ethyl acetoacetate followed by intramolecular cyclization involving the ester and the second nitrogen atom of phenyl hydrazine 37 .
The reaction of 3-methyl-I-phenyl-5-pyrazolone 2 withdiazonium chloride of sulfathiazole 3a gave 4-(2-(3-methyl-5-oxo-1-phenyl-1H-pyrazol-4(5H)-ylidene)hydrazinyl)-N-(thiazol-2-yl) benzenesulfonamide 6a rather than the other possible structure 5, Fig. 2. The synthesis involved initial diazotization of sulfathiazole 3a with sodium nitrite in hydrochloride solution to afford the diazonium salt 4, followed by coupling with a molar equivalent of the appropriate pyrazolone 2 in ethanol in the presence of sodium acetate at room temperature.The structure of compound 6a was established based on its analytical and spectral data.The infrared spectrum of the compound 6a showed the characteristic absorption band at 3100 cm −1 for the NH stretching: 1689 cm −1 for the C=O stretching and 1595 cm −1 for the N=N stretching vibrations (Fig. S2).The 1 HNMR spectrum of compound 6a (DMSO-d 6 ) declared the lack of singlet characteristic for methine proton and showed a merged singlet of methyl protons attached to the 3rd position of the pyrazole ring at δ 2.25 ppm.In the aromatic region a multiplet was obtained at δ 7.45-7.73ppm indicating the presence of five phenyl protons and two doublets at δ 7.89, 8.01 ppm assigned to the AB-system of benzene sulfonamide moiety in addition to the presence of two downfield signals at δ 11.80, 13.20 ppm assigned to the NH protons. 13CNMR spectral data of the compound showed a methyl group carbon at δ 12.09 and a carbonyl carbon downfield at δ 156.73 The coupling reactions involved that initially generate strong + N 2 electrophile from amine then finally react and coupled at active methylene group in pyrazolone 2 to produce compound 6, Fig. 2. In a similar manner, compound 2 reacted with diazonium chloride of sulfadimidine 3b at room temperature and afforded the N-(4,6-dimethyl pyrimidin-2-yl)-4-(2-(3-methyl-5-oxo-1-phenyl-1H-pyrazol-4(5H)ylidene) hydrazinyl)benzenesulfonamide 6b in a good yield.The structure of the isolated product was confirmed because of its elemental analysis and spectral data.The infrared spectrum of compound 6b showed strong bands at 1693 cm −1 which were due to carbonyl stretching of pyrazolone moiety.The compound showed bands at 3020 cm −1 and 2925 cm −1 which are due to aromatic C-H stretching and stretching aliphatic C-H vibration respectively.As shown in Fig. S2, bands observed at 1579, 1348, and 1153 cm −1 are assignable for N=N and SO 2 groups, respectively.The 1 H NMR spectrum of compound 6b showed two singlets at δ 2.29 and 2.42 ppm indicating the presence of methyl groups at pyrazoline and pyrimidine moieties, respectively.The singlet signal observed at δ 6.79 ppm assigned to the methine proton present at 5th position of pyrimidine ring.A multiplet was observed in the aromatic region at δ 7.24-7.90ppm indicating the presence of protons of two aromatic rings and in addition to the presence of two downfield signals at δ 12.80, 13.30 ppm assigned to the NH protons.The 13

Effect of inhibitor concentrations on the corrosion rate
A first step in the investigation of how to stop a metal from corroding in an electrolytic solution is to evaluate mass loss.This approach has the benefit of being easy to use and requiring little equipment.In 1 M HCl, the mild steel samples are submerged, both with and without the addition of various quantities of (6a and 6b).Utilizing a thermostatic bath, efficiency inhibitory activity is assessed after 1 day of immersion at 298, 303, 313, and 323 K.The indicated inhibitory effectiveness value is the average of three experiments performed for each concentration under identical conditions according to the following relations ( 7) and ( 8): where K is a constant (8.76 × 10 4 ), ∆W is the loss of weight after corrosion (mg), A is the metal surface area (cm 2 ); t is the immersion time (h), d is the metal density (g/cm 3 ).
The inhibition efficiency (IE WL , %) and surface coverage (θ) of inhibitors were calculated using the following expression 46 : where CR un and CR in are the corrosion rates of mild steel due to the dissolution in 1 M HCl in the absence and the presence of a definite concentration of inhibitor, respectively.
Table 1 displays the MS corrosion characteristics in 1 M HCl with and without various amounts of (6a and 6b) at 298 K.The calculated values of corrosion rate, inhibition efficiency (IE percent), and the extent of surface coverage for MS dissolution in 1 M HCl in the absence and presence of the two inhibitors of (6a and 6b) indicated their ability to prevent corrosion of MS in 1 M HCl solutions, where the corrosion rate is concentration dependent.It is clear from Table 1 that at all doses utilized in this investigation, (6a and 6b) suppress mild steel corrosion in 1 M HCl solutions.The corrosion rate is shown in Fig. 5 to continuously decrease with increasing inhibitor concentration.Corrosion rate values for mild steel also decrease as inhibitor concentration rises, whereas (IE percent) values for (6a and 6b) rise as concentration rises, reaching maximum values at (95.17 and 94.02 percent) at 500 ppm, respectively.Adsorption on the metal surface can be used to explain the (IE percent) prevention of mild steel corrosion.The interaction between the metal surface and the lone pairs of electrons on the nitrogen  www.nature.com/scientificreports/and sulfur atoms of the inhibitor can cause these compounds to be adsorbed.The iron atom's unoccupied low energy orbitals help to assist this reaction 47,48 .It was shown also that the corrosion rate depended on molecular weight.As molecule weight increases the inhibition efficiency increases 49 .
Table 1 and Figure 5 provide evidence that, for MS at all investigated temperatures, (6a and 6b) are very effective corrosion inhibitors.Since it was anticipated that (6a and 6b) would desorb at higher temperatures and offer lesser inhibitory efficiency, this result caught everyone off guard.However, it appears that during the entire temperature range under study, the molecules are stable on the MS surface.This is a significant finding from a practical standpoint since a wider range of industrial processes that take place at somewhat higher temperatures can now use these inhibitors 45 .

Adsorption consideration
Figure 6 show (plot of C/θ against C) gives straight lines with slope equal or nearly equal to 1.00 for four temperatures (298, 303, 313 and 323 K) and intercepts provide the calculation of the values of K ads are given in Table 2.The obtained results indicate that the adsorption of compounds under consideration on mild steel/acidic solution interface follows the Langmuir adsorption isotherm according to Eqs. ( 9) and (10).
As can be seen from Table 2, the addition of the inhibitors causes negative values of ∆G°a ds , indicating that the adsorption of studied sulfonamide derivatives is a spontaneous process 50 According to widespread consensus, adsorption types can be classified as physisorption for values of Goads up to − 20 kJ mol −1 , and the inhibition is caused by electrostatic interactions between charged molecules and the charged metal.A covalent link is formed between the inhibitor molecules and the metal surface when the values are around − 40 kJ mol −1 or less, and this process is known as chemisorption 51,52 .According to Table 2, where the values of ∆Gº ads in our experiments ( 9)   www.nature.com/scientificreports/vary from − 29.06 to − 30.52 kJ mol −1 , the adsorption of these sulfonamide derivatives is thought to involve two different types of interaction: chemisorption and physisorption 53 .
Effect of temperature.Temperature is one of the factors that can modify both the behavior of inhibitors and substrates in each aggressive medium.The organic compounds can dissolve more easily when the temperature increases.The increase in temperature can thus cause a weakening of the corrosion resistance of the metals 54 .
To examine the influence of this parameter on the inhibitory efficiency of (6a and 6b), we conducted Wight loss measurements for temperatures equal to 298, 303, 313 and 323 K.The results obtained after 1 day of immersion time are summarized in Table 3. Table 3 shows that CR in 1 M HCl increases with increasing temperature.For all inhibitor concentrations, CR also increases with temperature, but takes lower values at high inhibitor concentrations.This allows us to observe that the (IE%) increases when the temperature decreases.This evolution is, however, more marked for the highest concentrations of the inhibitor.
Using the Arrhenius Eq. ( 11), the activation energy (Ea) for the corrosion process was obtained as follows 55 .
R is the gas constant (8.31 J/mol/K), A is the Arrhenius pre-exponential factor, and T is the temperature.The Apparent activation energies (− Ea/2.303R) and pre-exponential factor (A) at different concentrations of (6a and 6b) are determined by linear regression between Log (CR) and 1/T Fig. 7.The activation energy values in the absence and in the presence of inhibitors at different temperatures are reported in (Table 3) 56,57 .In the presence of the inhibitor the values of E a are higher than in its absence.This behavior is reported as being characteristic of a phenomenon of physisorption of the inhibitor on the surface of the metal.The recovery rate, which is very low at higher temperatures high, suggests that at these temperatures the rate of destruction of the physically adsorbed film increases faster than its formation rate.This phenomenon can also be explained by the fact that the corrosion process of the mild steel in the presence of the inhibitor does not depend only on the reaction that takes place on the surface of the bare metal, but also from the diffusion of ions iron through the adsorbed inhibitor layer.This confirms that the inhibitors at high concentrations participate in a stronger physical adsorption by the formation of a more adherent surface film and therefore more effective 58,59 .The values of kinetic parameters such as enthalpy (ΔH) and entropy (ΔS) of corrosion process may be evaluated from the temperature effect on MS surface were obtained using Eq. ( 12) 58 .
where, h is Planck's constant, NA is Avogadro's number.
Enthalpy and entropy values of (6a and 6b) compounds on MS surface were calculated using the transition state Eq. ( 5). Figure 8 shows log (CR/T) against 1000/T, which give straight lines with a slope of − ∆H/2.303R and an intercept of [log(R/NAh) + (∆S/2.303R)]for MS in the absence and presence of (6a and 6b) compounds have concentration 50, 100, 200 and 500 ppm in 1 M HCl solution.
In (Table 3) Values of ΔH* were found positive.Positive values indicate endothermic nature of mild steel dissolution process 51,60 .Endothermic process further indicates that mild steel dissolution reduces at lower temperatures and increases with increase in temperatures.Negative values of ΔS* are indicative of formation of activated complex in rate determining step, which represents association rather than dissociation step, meaning the decrease in disorder takes place on going from reactants to activated complex 61,62 .

Electrochemical study
Open circuit potential (OCP) curves for the corrosion carbon steel in 1 M HCl in absence and presence of different concentrations of investigated inhibitors (VI, VII and VIII) at 298 K are shown in Fig. 9.
Measurements using electrochemical impedance spectroscopy (EIS) are a valuable technique for characterizing a variety of electrochemical systems and comprehending the function of electrolytic processes, such as batteries, and the behavior of elements during corrosion.Figure 10 shows the Nyquist plots for MS at different concentrations for the investigation of corrosion.
The capacitance loops show that mild steel corrosion and the formation of a surface barrier are predominantly controlled by the electron transfer process 63 .The equivalent circuit model, shown in Fig. 10, was used to fit the experimental data on mild steel's impedance in the presence of inhibitors in 1M HCl.The solution resistance     36 .Table 4 shows that the addition of an additive to a solution of 1 M HCl causes the R ct values for MS to increase, indicating that the charge transfer pathways are hindered.
Inhibition efficiency (IE (EIS) ) and θ were calculated from the following Eqs.( 13) and ( 14) 46 : where R ct(inh) and R ct(unh) are charge transfer resistances in the presence and absence of an inhibitor, respectively where the CPE exponent is n and Y 0 is the CPE constant.The number n, which ranges from 0 to 1, represents the departure from the ideal behavior.
When the inhibitor was applied, the value of C dl in Table 4 decreased, indicating a decrease in the local dielectric constant and/or an increase in the thickness of the electrical double layer, which suggests that the inhibitor molecules work by forming a protective layer at the metal surface 64 .
EFM is an electrochemical method for calculating the corrosion rate without prior knowledge of the Tafel constants.This method's ability to assess the corrosion rate, Tafel parameters, and causative factors all in one data set.Table 5 provides the corrosion parameters for protection effectiveness, corrosion current density, Tafel constant, and causative factors (CF-2), (CF-3) for various concentrations in 1M HCl at 298 K.
Examples of the EFM intermodulation spectra of mild steel in 1 M HCl solutions in the absence and presence of various concentrations of the inhibitors 6a and 6b are shown in Fig. 11 at 298 K. Equation can be used to compute the surface coverage and the inhibition efficiency (IE EFM %) 65 : where Icorr (inhibitors) and Icorr (blank) are corrosion current densities.
This Table 5 clearly demonstrates that as the concentration of inhibitors increases, the values of I corr decrease, indicating that (IE EFM ) increases, indicating that the inhibitors prevent corrosion by adsorption on the MS surface by forming chemical and physical bonds and creating a barrier of protection that lowers the ratio of corrosion 66 .
According to the EFM theory, the values of the causality factors (CF-2, CF-3) are very similar to their theoretical values ( 2) and ( 3), indicating that Tafel slopes and corrosion current densities are correct 67 .
Polarization curves of MS in 1 M HCl solution at 298 K with different concentrations of the inhibitors are shown in Fig. 12.The percentage inhibition efficiency (IE PDP %) and the degree of surface coverage (θ), were calculated from Eq. ( 16) 68 .
The plots of potential versus the logarithm of current density were used to display polarization curves.Table 6 includes a list of the corrosion characteristics, including corrosion potential (Ecorr), corrosion current density (Icorr), anodic and cathodic Tafel slopes (a and c), and percentage inhibition efficiency (IE PDP %).It is so clear that Icorr of anodic and cathodic reactions reduced with increasing the concentration of the inhibitor till reach the maximum that guarantee the inhibition process.
This barrier of defense is created on the surface of the mild steel by the heteroatoms and unsaturated bonds in the inhibitor.Based on the sort of reaction that often takes place in an acidic solution, an inhibitor can be categorized as either an anodic, cathodic, or mixed type inhibitor.The cathodic process, also known as the release ( 13)  www.nature.com/scientificreports/ of hydrogen gas, is the opposite of the anodic reaction, which involves the dissolving of metal and releasing electrons 69 .

Scanning electron microscopy
The polished MS surface is extensive in the case of the MS without corrosion inhibitors seen in Fig. 13a, and this might be interpreted as severe surface damage.The surface smoothed out while the inhibitors 6a and 6b were present (Fig. 13b,c).This shows that the inhibitors adhered to the MS surface and created a layer of protection.These results are supported by EDX analysis, which reveals that the main components are just Fe, Ti, and O in the MS itself.While both S and C are present in the MS with 6a and 6b as inhibitors, those from 6a and 6b are the ones that are original.

Quantum chemical calculations
Many factors affect how organic molecules inhibit metal corrosion in an acidic medium 70 such as: the number of adsorption centers, the mode of interaction with the metal surface, the size and the molecular structure 71 and in order to give more interpretations to the experimental results, different quantum parameters namely: EHOMO, ELUMO, ΔE = EHOMO − ELUMO, (σ), (η), (ω), (µ, Debye) and (ΔN).E HOMO (the energy of the first unoccupied molecular orbitalis commonly related to the molecule's ability to transfer electrons.A high level of HOMO energy encourages a molecule's ability to donate electrons to species possessing unfilled molecular orbitals whose energy level is low.On the other hand, ELUMO (the energy of the highest occupied molecular orbital) reflects the molecule's ability to receive electrons.A low value of ELUMO represents that the molecule accepts electrons.ΔE = EHOMO − ELUMO is the least energy required to excite an electron in a molecule.Therefore, a low value of ΔE leads in a considerable inhibitory effectiveness [72][73][74][75] .Table 7 gather the calculated quantum parameters for the 6a and 6b compounds.This table shows that, molecules with a low energy gap have better inhibitory efficiency, this is explained by the fact that these compounds readily move one or more electrons from the HOMO level to the empty "d" orbitals of iron, and thus enhancing the sharing of electrons between these molecules and the surface of the metal 52,76 .Furthermore, according to the literature, a rise in EHOMO values can speed up   adsorption by affecting how species move across the adsorbed layer 76 .In Table 7, It was evident from the results that 6b is higher to 6a in terms of effectiveness.A high absolute hardness value is a sign of a molecule's excellent stability and low reactivity.Table 7 revealed that the η.p % values for the examined inhibitors drop as the hardness values rise.6a is the hardest of the inhibitors (η = 1.2323).The inhibitor 6b has lowest hardness (η = 1.0769).The values of increasing hardness are in good agreement with the experimental IE % values.
The nucleophilic or electrophilic character of the molecule is shown by the electrophilicity index (ω) readings.In contrast, a low value of electrophilicity indicates that the molecule has a high tendency to function as a nucleophile.A high electrophilic value indicates that the molecule has a strong inclination to behave as an electrophile.A good electrophile is defined by a high value of ω and an excellent nucleophile is associated with a lower value of ω 77 .From the Table 7 the electrophilicity values increase as follows: (44.628 > 40.224 eV) with comparing electrophilicity index values with the IE exp% (95.17 > 94.02 at 298 K) for (6a and 6b) compounds, respectively.
Depending on the kind and nature of the molecules involved, the inhibitory effectiveness rises as the dipole moment value grows 78 .Table 7 illustrated that when the values of µ grew, so did the values of IE%.The highest value applies to the inhibitor 6b (6.6146 D).The lowest value for the inhibitor is 6a (6.0183D).By Lukovits's study, if the value of ΔN < 3.6, the η.p % increase by increasing electron donating ability of inhibitor on the metal surface [79][80][81] .From Table 7, generally, values of ∆N range from 0.0314 to 0.0361.6b indicates the highest value transfer of electron and hence greater IE%.Thus, the fraction of transmitted electrons is the largest for 6b as compared with other inhibitor 6a.
The Mullikan population analysis is employed to calculate the charge distribution across the entire skeleton of the molecule and to determine the adsorption sites of inhibitors 82,83 .The calculated Mulliken charges (Total   negative charges) of selected atoms carbon, oxygen and nitrogen were presented in Table 7.It is predicted that 6a will contact the metal surface more often but 6a is expected to do so less.The distribution of the HOMO and LUMO electron density of the molecules are represented in Fig. 14 We thus observe for all the inhibitory molecules, the distribution of the HOMO density is centered on the heteroatoms (S, N and o) of the pyrazol ring and benzene sulfonamide.The high inhibitory power of benzene sulfonamide can be attributed to the presence of aromatic substituents possessing "π" electrons encouraging the sharing of electrons between these compounds and the metal surface.In addition, the concentration of anions on the metal surface will enhance the adsorption of the cationic forms of the benzene sulfonamide inhibitors 34 .The nearest area near the sulphur atom has the greatest HOMO density values, which is concrete proof that sulphur is the nucleophilic center [84][85][86] .As a result, sulphur will readily establish the metal-metal connection rather than N or C atoms.Table 8 compares pyrazolone-sulfonamide hybrids inhibition activity with other related inhibitors 36,[87][88][89][90] .

Conclusions
In this study two compounds successfully synthesized and characterized FTIR, 1 H-NMR, 13 C-NMR, and mass spectra.It was then used as inhibitor corrosion of mild steel in 1 M HCl by using the gravimetric method, electrochemical measurement, scanning electronic microscope analysis, and quantum chemical calculations.The studied chemicals' inhibitory potency ranged from 76.99 to 96.651%.These compounds attach to the Langmuir adsorption isotherm during the adsorption process.A few isotherms and kinetic parameters for adsorption have been created and explored.The mechanism of inhibition is mixed type.The metal surface had a thin protective layer that acted as an inhibitor, according to analyses done with energy dispersive X-ray spectroscopy (EDX) and scanning electron microscopy (SEM).

Figure 5 .
Figure 5. Relationship between corrosion rate (CR) and inhibition efficiency (ηp) with inhibitors concentrations at different temperatures of inhibitors in 1 M HCl.

Figure 6 .
Figure 6.Langmuir adsorption plots for mild steel in 1 M HCl solutions at the presence of different concentrations of the inhibitors at different temperatures.

Figure 7 .
Figure 7. Arrhenius plots for mild steel in 1 M HCl solution without and with different concentrations of the inhibitors.

Figure 8 .
Figure 8. Transition state plots for mild steel dissolution in the absence and presence of the inhibitors.

Figure 9 .
Figure 9. Open circuit potential plots for mild steel in 1 M HCl in absence and presence of different concentration of inhibitors 6a and 6b at 298 K.

Figure 10 .
Figure 10.Nyquist plots for mild steel in 1 M HCl in absence and presence of different concentration of inhibitors 6a and 6b at 298 K (the inset shows the equivalent circuit model used to fit the EIS data, and the solid line is the fitting data).

Figure 11 .
Figure 11.Intermodulation spectrums for the corrosion of in 1 M HCl solution at different inhibitor concentrations at 298 K.

Figure 12 .
Figure 12.Tafel plots for MS in 1 M HCl solution at different inhibitors concentrations at 298 K.

Figure 13 .
Figure 13.SEM images and EDX of MS surface after 1 day immersed in 1 M HCl (a) blank, (b) 6a, and (c) 6b at 298 K.

Table 1 .
Wight loss parameters of 6a and 6b as inhibitors on the corrosion of mild steel in 1 M HCl for 24 h immersion period.

Table 2 .
Adsorption isotherm parameters of the mild steel electrode surface in 1 M HCl containing different concentrations of the 6a and 6b at different temperatures.

Table 3 .
Activation parameters values for mild steel in 1 M HCl in the absence and presence of different concentrations of the studied 6a and 6b at different temperatures.InhibitorConc. of inhibitor (ppm) Ea (kJ mol −1 ) ∆H* (kJ mol −1 ) ∆S* (kJ mol −1 K −1 )

Table 4 .
Electrochemical impedance spectroscopy parameters of MS in 1 M HCl in the absence and presence of different concentrations of 6a and 6b at 298 K. in this Figure is denoted by Rs (Ru), the charge transfer resistance is denoted by Rct (Rp), and the double-layer capacitance on the metal's surface is denoted by(Cdl) Vol:.(1234567890) Scientific Reports | (2023) 13:18555 | https://doi.org/10.1038/s41598-023-45659-2www.nature.com/scientificreports/

Table 5 .
EFM parameters of MS in 1 M HCl in the absence and presence of different concentrations of 6a and 6b at 298 K.

Table 6 .
Corrosion parameters obtained from potentiodynamic polarization measurements of mild steel in 1 M HCl at different inhibitor concentrations 6a and 6b at 298 K.

Table 8 .
Comparison of the inhibition efficiency of pyrazolone-sulfonamide hybrids inhibitors with other related inhibitors.